package com.mezz.bones.framework.web.handler.login.info;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhuang
 * @Date: 2024/11/22 10:01
 * @Description: TODO
 * @Version: 1.0
 **/
@Configuration
public class RequestLoginUserInfoHandlerConfig {

    @Bean
    @ConditionalOnMissingBean
    public RequestLoginUserInfoHandler requestLoginUserInfoHandler(){
        //如果没有自定义用户信息处理器就使用默认的用户信息处理器
        return new DefaultRequestLoginUserInfoHandler();
    }
}
